/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

import javax.swing.JDesktopPane;
import javax.swing.JInternalFrame;

/**
 *
 * @author linux
 */
public class UtilsWindow {
    public  static void getCenterWindowCoordinates(JDesktopPane jdp,JInternalFrame jif){
        int x = jdp.getVisibleRect().width/2;
        int y = jdp.getVisibleRect().height/2;
        jif.setLocation(x - (jif.getWidth()/2), y - (jif.getHeight()/2));
    }
}
